package com.typhoon.spring_shiro.dao;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import com.typhoon.spring_shiro.entity.StockOptHistory;

@Repository("stockOptHistoryDao")
public class StockOptHistoryDao extends BaseDao {
	
	private static final Logger LOGGER = LoggerFactory.getLogger(StockOptHistoryDao.class);
	
	private final static String TABLE_STOCK_HISTORY = "StockOptHistory";
	
	@Resource
	private JdbcTemplate centerJdbc;
	
	public StockOptHistory save(StockOptHistory history) {
		return this.addObjForKey(centerJdbc, TABLE_STOCK_HISTORY, history, "id");
	}

}
